package org.song.service.impl;

import org.song.mapper.GroupChatMapper;
import org.song.model.dto.GroupChatDto;
import org.song.model.vo.GroupChat;
import org.song.service.GroupChatService;
import org.song.service.impl.common.AbstractBaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.lang.NonNull;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GroupChatServiceImpl extends AbstractBaseServiceImpl implements GroupChatService {

    @Autowired( required = true )
    @Qualifier( value = "groupChatMapper")
    private GroupChatMapper groupChatMapper;

    @Override
    public List<GroupChat> listGroupChats(GroupChatDto groupChatDto) {
        return groupChatMapper.listGroupChats(groupChatDto);
    }
    

    @Override
    public int deleteGroupChat( @NonNull GroupChat groupChat) {
        return groupChatMapper.deleteGroupChat(groupChat);
    }

    @Override
    public int insertGroupChat( @NonNull GroupChat groupChat) {
        return groupChatMapper.insertGroupChat(groupChat);
    }

    @Override
    public int updateGroupChat( @NonNull GroupChat groupChat) {
        return groupChatMapper.updateGroupChat(groupChat);
    }
    
}
